"""kalfapp URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.conf.urls import url

from kalf import  views
from kalf import  tests

urlpatterns = [
    path('admin/', admin.site.urls),
    url(r'^$', views.show_orderlist),
    url(r'^orderlist/(\w+)/$',views.show_orderlist_page),
    url(r'^P/$', views.getProduct),
    url(r'^PP/$', views.get_local_producate),
    url(r'^TT/$',tests.test_str_to_date),
    url(r'^H/$',views.getOrderInfo),
    url(r'^order/$',views.save_order_data),
    url(r'^order_list/$',views.show_order_list),
    url(r'^product/$',views.show_product),
    url(r'^product/(\w+)$',views.show_product_page),
    url(r'^product_list/$',views.show_product_list),
    url(r'^import/$',views.show_importlist),
    url(r'^olist/$',views.show_import_orderlist),
    url(r'^olist/(\w+)/$',views.show_import_orderlist_page),
    url(r'^o-list/$',views.show_import_order_page),
    url(r'^o-list/(\w+)$',views.show_import_order_page2),
    url(r'^U/$',views.update_price),
    url(r'^KA/$',tests.show_html),
    url(r'^KALF/$',tests.post_kalf),
    url('http://apit.icibei.com/order-service/order/external/acceptReceiptItems',tests.post_kalf_order),
]
